home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / tclX-6.4 / help / files / read_file < prev    next >
Encoding:
Text File  |  1992-12-17  |  560 b   |  12 lines

  1.  
  2.  
  3.           read_file fileName [numBytes|nonewline]
  4.                Read the file fileName and returns the contents as a
  5.                string.  If nonewline is specified as an additional
  6.                argument, then the last character of the file is
  7.                discarded if it is a newline.  Otherwise the second
  8.                argument specifies exactly how many bytes will be read
  9.                and returned, unless there are fewer than numBytes
  10.                bytes left in the file; in this case, all the remaining
  11.                bytes are returned.
  12.